package com.lxh.lxhcrm.model.vo;

import com.lxh.lxhcrm.model.pojos.Emp;

import javax.persistence.ElementCollection;
import java.util.List;

/**
 * @author ：鞠玮
 * 开发团队 ：lxh
 * 开发时间 ：2020/3/6 8:59
 * 类的名称 ：DepartmentVo
 * 类的描述 ：部门和员工vo类
 */
public class DepartmentVo {
    private int departmentId;
    private String departmentName;
    @ElementCollection
    private List<Emp> deEmp;

    public DepartmentVo() {
    }

    public DepartmentVo(int departmentId, String departmentName, List<Emp> deEmp) {
        this.departmentId = departmentId;
        this.departmentName = departmentName;
        this.deEmp = deEmp;
    }

    public int getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(int departmentId) {
        this.departmentId = departmentId;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public List<Emp> getDeEmp() {
        return deEmp;
    }

    public void setDeEmp(List<Emp> deEmp) {
        this.deEmp = deEmp;
    }
}
